package bean;

import java.io.Serializable;
import java.util.List;
import java.util.UUID;

/**
 * Created by likang on 2017/7/12.
 */
public class TradeConsumptionMain  implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 所属餐厅
     */
    private String restaurant;
    /**
     * 所属餐次
     */
    private String mealTime;
    /**
     * POS机
     */
    private String posMachine;
    /**
     * 流水单号(对应交易流水)
     */
    private String flowNo;
    /**
     * 消费时间
     */
    private String consumptionTime;
    /**
     * 点餐类型(0:消费 1:赠送 2:退菜)
     */
    private String orderType;
    /**
     * 所属顾客(现金结算时为空)
     */
    private String customer;
    /**
     * 菜品总份数
     */
    private Double quantity;
    /**
     * 应付总额((无折扣时)
     */
    private Double shouldPaidAmount;
    /**
     * 实际总额(打折之后)
     */
    private Double actualAmount;
    /**
     * 折扣比例
     */
    private Double discountPercent;
    /**
     * 折扣总额
     */
    private Double discountAmount;
    /**
     * 人工折扣原因
     */
    private String reason;
    /**
     * 定额消费价格
     */
    private Double quotaPrice;
    /**
     * 消耗次数
     */
    private Integer times;
    /**
     * 是否已结算(0:未结算1:已结算)
     */
    private String isSettlement;
    /**
     * 订单条码
     */
    private String tableNo;
    /**
     * 创建人
     */
    private String creatorId;
    /**
     * 创建人姓名
     */
    private String creatorName;
    /**
     * 创建时间
     */
    private String createTime;

    private String isXmlOut;//是否已导出xml

    private List<TradeConsumptionDetail> detailLists;//明细


    //送餐地址
    private String customerAddress;

    //顾客电话
    private String customerPhone;

    //顾客姓名
    private String customerName;
    private String customerFloor;
    //建筑信息
    private  String customerArchitecture;
    private String printStatus="0";
    private String orderStatus="0";


    public String getCustomerFloor() {
        return customerFloor;
    }

    public void setCustomerFloor(String customerFloor) {
        this.customerFloor = customerFloor;
    }

    public String getPrintStatus() {
        return printStatus;
    }

    public void setPrintStatus(String printStatus) {
        this.printStatus = printStatus;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }


    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    public String getId() {
        if (id == null) id = UUID.randomUUID().toString().replace("-", "");
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRestaurant() {
        return restaurant;
    }

    public void setRestaurant(String restaurant) {
        this.restaurant = restaurant;
    }

    public String getMealTime() {
        return mealTime;
    }

    public void setMealTime(String mealTime) {
        this.mealTime = mealTime;
    }

    public String getPosMachine() {
        return posMachine;
    }

    public void setPosMachine(String posMachine) {
        this.posMachine = posMachine;
    }

    public String getFlowNo() {
        return flowNo;
    }

    public void setFlowNo(String flowNo) {
        this.flowNo = flowNo;
    }

    public String getConsumptionTime() {
        return consumptionTime;
    }

    public void setConsumptionTime(String consumptionTime) {
        this.consumptionTime = consumptionTime;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getShouldPaidAmount() {
        return shouldPaidAmount;
    }

    public void setShouldPaidAmount(Double shouldPaidAmount) {
        this.shouldPaidAmount = shouldPaidAmount;
    }

    public Double getActualAmount() {
        return actualAmount;
    }

    public void setActualAmount(Double actualAmount) {
        this.actualAmount = actualAmount;
    }

    public Double getDiscountPercent() {
        return discountPercent;
    }

    public void setDiscountPercent(Double discountPercent) {
        this.discountPercent = discountPercent;
    }

    public Double getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(Double discountAmount) {
        this.discountAmount = discountAmount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Double getQuotaPrice() {
        return quotaPrice;
    }

    public void setQuotaPrice(Double quotaPrice) {
        this.quotaPrice = quotaPrice;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public String getIsSettlement() {
        return isSettlement;
    }

    public void setIsSettlement(String isSettlement) {
        this.isSettlement = isSettlement;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getIsXmlOut() {
        return isXmlOut;
    }

    public void setIsXmlOut(String isXmlOut) {
        this.isXmlOut = isXmlOut;
    }

    public List<TradeConsumptionDetail> getDetailLists() {
        return detailLists;
    }

    public void setDetailLists(List<TradeConsumptionDetail> detailLists) {
        this.detailLists = detailLists;
    }

    public String getCustomerArchitecture() {
        return customerArchitecture;
    }

    public void setCustomerArchitecture(String customerArchitecture) {
        this.customerArchitecture = customerArchitecture;
    }

    public String getTableNo() {
        return tableNo;
    }

    public void setTableNo(String tableNo) {
        this.tableNo = tableNo;
    }
}
